
#include <stdio.h>
#include <stdlib.h>

int main() {
    // /Users/zkingcobra/Projects/CLionProjects/LearnC/xiangxue/TestVim.c
    FILE *pFile = fopen("../xiangxue/TestVim.c", "r");

    if (pFile) {
        // 按字符读取文件
        while (1) {
            char c = fgetc(pFile);
            if (c == EOF) {
                break;
            }
            printf("%c", c);
        }
        fclose(pFile);
        pFile = NULL;
    } else {
        printf("fail \n");
    }

    return 0;
}